const path = require('path')
const {autoLoadFile} = require('../utils')

// 读取配置文件除开index.js
const config = autoLoadFile(path.resolve(__dirname, './'), false, ['.js']).filter(item => item.name !== 'index')
let configObj = {}
config.forEach(item => {
  for(let key in item.data){
    configObj[key] = item.data[key]
  }
})

module.exports = configObj



